package com.example.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.entity.yifei.Cmsmd;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Lan
 * @since 2024-07-10
 */
@Mapper
public interface CmsmdMapper extends BaseMapper<Cmsmd> {

    /**
     * 根据 工作中心编号 查询工作中心信息详情
     * @param MD001
     * @return
     */
    @Select("select * from CMSMD where MD001 = #{MD001}")
    Cmsmd getByMD001(String MD001);

    @Select("select MD001 from CMSMD")
    List<String> md001List();
}
